import request from '@/utils/request'
import d from 'highlight.js/lib/languages/d'

export function listBlogs(query){
    return request({
        url:'/blogs',
        method:'get',
        params:query,
        isToken : true
    })
}
export function deleteBlog(blogId){
    return request({
        url:'/blog/delete/'+blogId,
        method:'get',
        isToken:true
    })
}
export function detail(blogId){
    return request({
        url:'/blog/'+blogId,
        method:'get',
        isToken:true
    })
}
export function edit(data){
    return request({
        url:'/blog/edit/',
        method:'post',
        data:data,
        isToken:true
    })
}